package com.test.mapper.services;

import com.test.dao.SearchCriteria;
import com.test.dao.SearchResultSet;
import com.test.mapper.enitites.EntityModel;

public interface EntityService {

	public boolean addEntity(final EntityModel entity);

	public boolean updateEntity(final EntityModel entity);

	public boolean removeEntity(final EntityModel entity);

	public EntityModel getEntityByTableName(final int clientId, final String tableName);

	public SearchResultSet<EntityModel> searchForEntities(final SearchCriteria criteria);

	public boolean isEntityNameAvailable(final int clientId, final String entityName, final String existingTableName);

	public boolean isEntityNameAvailable(final int clientId, final String entityName);

	public void loadEntityProperties(final EntityModel entity);
}
